package community.hospital.entity.request;

import cn.hutool.core.date.LocalDateTimeUtil;
import community.hospital.common.Add;
import community.hospital.common.BaseIndex;
import community.hospital.common.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.temporal.Temporal;
import java.util.Date;



/**
 * @author yindingjie
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ScheduleRequest extends BaseIndex implements Serializable {
    @NotNull(message = "请选择排班医生",groups = {Add.class, Update.class})
    private Long doctorId;
    @NotNull(message = "请选择排班时间",groups = {Add.class, Update.class})

    private Date detailTime;
    @NotNull(message = "请选择当天值班时间",groups = {Add.class, Update.class})

    private Integer scheduleCode;

    private Long hospitalId;

    private Long department1Id;

    private Long department2Id;
}
